.global 	IEC60730_PartDramMarchC_WOM
.global 	u32DRAMStartAddr
.global 	u32DRAMEndAddr


@DF: ARTISAN 1

@*******************************************************************************
@ Function Name  : IEC60730_PartDramMarchC_WOM
@ Description    : Partial DRAM MarchC test for runtime
@ Input          : R0 .. RAM begin (first address to check),
@                  R1 .. RAM end (last address to check)
@                  R2 .. Background pattern
@ Local          : R3 .. Inverted background pattern
@                  R4 .. keeps test result status
@                  R5  .. pointer to RAM
@                  R6  .. content RAM to compare
@ Return         : TEST_SUCCESSFULL (=1)
@ WARNING        : The test range of SRAM cannot inclde stack, otherwise may
@				   resut in unpredicted condition encounterred.
@*******************************************************************************/
IEC60730_PartDramMarchC_WOM:

	PUSH	{R1-R7}
	MOV		R0, R14
	PUSH	{R0}		@ save R14 (LR) register
	BL		IEC60730_FullDramMarchC_WOM
	MOV		R4, R0		@ pass test result to R4
	POP		{R0}
	MOV		R14, R0		@ restore R14 (LR) register
	MOV		R0, R4		@ pass test result to R0
	POP  	{R1-R7}
	BX    	LR          @ return to the caller

	NOP
